package com.xyoto.takeawayBusiness.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Tag;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/4/27  15:39
 */
@ApiModel("修改菜单分类")
@Data
public class UpdateTypeDTO {


    @ApiModelProperty("菜单分类id")
    @Min(value = 0)
    @NotNull(message = "菜单分类id不能为空")
    private Integer id;

    @ApiModelProperty("菜单分类名称")
    @NotNull(message = "菜单分类名称不能为空")
    private String typeName;

}
